<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">

arr = [10,15,12,32,35,25,26,72,48,80,18,];


	function numSort (arr) {
		for (var y=0;y< arr.length;y++ ) {
			for (var i =0; i < arr.length; i++) {
				if(arr[i]<arr[i+1]){
					temp = arr[i];
					arr[i] = arr[i+1];
					arr[i+1] =temp; 
				}
			};
		};

		return arr;
	}

	var res = numSort(arr);

	document.write(res);

	</script>
</head>
<body>
	
</body>
</html>